package exce1.exce02;

public class Demo1 {
    public Demo1(){
        System.out.println("无参构造");
    }
    public Demo1(int price,String brand){
        this.price=price;
        this.brand=brand;
        System.out.println(price+brand);
    }
    private int price;
    private String brand;
    public void setPrice(int price){
        this.price=price;
    }
    public void setBrand(String brand){
        this.brand=brand;
    }
    public int getPrice(){
        return price;
    }
    public String getBrand(){
        return brand;
    }

}
